package com.dingup.provider.service.lesson;

import com.dingup.api.bean.page.PageData;
import com.dingup.api.bean.requestBean.lesson.LessonPageBean;
import com.dingup.api.model.lesson.LessonInfo;
import com.dingup.api.model.lesson.LessonSubjectInfo;

import java.util.List;

/**
 * Created by wancheng on 2018/8/23.
 */
public interface LessonService {

    public LessonInfo getLessonInfoById(Integer id);

    public LessonInfo getLessonInfoByLessonName(String lessonName);

    public LessonInfo saveLessonInfo(LessonInfo lessonInfo);

    public void updateLessonInfo(LessonInfo lessonInfo,String operaUserId);


    public LessonSubjectInfo addSubject(LessonSubjectInfo lessonSubjectInfo, String operaUserId);

    public void updateSubject(LessonSubjectInfo lessonSubjectInfo, String operaUserId);

    public void deleteSubject(Integer id, String operaUserId);

    public void deleteLessonInfo(Integer id);

    public List<LessonInfo> getByCreateUserIds(List<String> createUserIds);

    public PageData getByCreateUserIds(LessonPageBean lessonPageBean, List<String> createUserIds);

    public PageData getByCreateUserIdsAndSearch(LessonPageBean lessonPageBean, List<String> createUserIds);

    public void updateLessonIfOnShelf(Integer lessonId,Boolean ifOnShelf,String operaUserId);

    public List<LessonInfo> getAllLessonOnShelf();



}
